package com.demo.crm.springboot3security.service;

import java.util.List;

import com.demo.crm.springboot3security.entity.FormFieldValue;
import com.mybatisflex.core.paginate.Page;

public interface FormFieldValueService {
    List<FormFieldValue> findByFormIdAndRecordId(Long formId, Long recordId);

    List<FormFieldValue> findByFormIdAndFieldIdAndRecordIdIn(Long formId, Long fieldId, List<Long> recordIds);

    List<Long> findRecordIdsByTextSearch(Long formId, Long fieldId, String searchText);

    FormFieldValue save(FormFieldValue value);

    void delete(Long id);

    FormFieldValue findById(Long id);

    List<FormFieldValue> findAll();

    Page<FormFieldValue> findByPage(int pageNumber, int pageSize);

    void deleteByFormIdAndRecordId(Long formId, Long recordId);

    List<FormFieldValue> saveAll(List<FormFieldValue> values);
}